package com.wl.video.live.utils;

import android.util.Log;

/**
 * Created by LazyMan on 2015/9/23.
 */
public class Logger {

    private static int logLevel = 0;

    public static void setLogLevel(int logLe){
        logLevel = logLe;
    }

    public static void e(String tag,String msg){
        if(logLevel >1)
            Log.e(tag, msg + "");
    }

    public static void w(String tag,String msg){
        if(logLevel > 2)
            Log.w(tag, msg + "");
    }
    public static void i(String tag,String msg){
        if(logLevel > 3)
            Log.i(tag, msg + "");
    }
    public static void d(String tag,String msg){
        if(logLevel > 4)
            Log.d(tag, msg + "");
    }
    public static void v(String tag,String msg){
        if(logLevel > 5)
            Log.v(tag, msg + "");
    }
}
